/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.basicdata.basictree.entity;


import com.jeeplus.common.utils.StringUtils;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;

import java.util.List;


public class PartDevice extends DataEntity<PartDevice> {
	
	private static final long serialVersionUID = 1L;
	private String deviceId;		// device_id
	private List<PartDevice> children;		// 父节点
	private String fileCode;		// 设备编码
	private String fileDeviceid;		// file_deviceid
	private String fileDevicename;		// 设备名称
	private String fileProfessional;		// file_professional
	private String fileInstallationdate;		// file_installationdate
	private String fileUseryear;		// file_useryear
	private String filePerson;		// file_person
	private String fileUpdate;		// file_update
	private String fileTag;		// file_tag
	private String fileLevel;		// 设备层级
	private String placeParentid;		// place_parentid
	private String fileSupply;		// file_supply
	private String fileUserdate;		// file_userdate
	private String fileQuanming;		// file_quanming
	private String fileZyq;		// file_zyq
	private String nmdesc;
	private String nmspec;

	@ExcelField(title="nmspec", align=2, sort=17)
	public String getNmspec() {
		return nmspec;
	}

	public void setNmspec(String nmspec) {
		this.nmspec = nmspec;
	}

	public PartDevice() {
		super();
	}

	public PartDevice(String id){
		super(id);
	}

	@ExcelField(title="device_id", align=2, sort=0)
	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	
	@ExcelField(title="设备编码", align=2, sort=1)
	public String getFileCode() {
		return fileCode;
	}

	public void setFileCode(String fileCode) {
		this.fileCode = fileCode;
	}
	
	@ExcelField(title="file_deviceid", align=2, sort=2)
	public String getFileDeviceid() {
		return fileDeviceid;
	}

	public void setFileDeviceid(String fileDeviceid) {
		this.fileDeviceid = fileDeviceid;
	}
	
	@ExcelField(title="设备名称", align=2, sort=3)
	public String getFileDevicename() {
		return fileDevicename;
	}

	public void setFileDevicename(String fileDevicename) {
		this.fileDevicename = fileDevicename;
	}
	
	@ExcelField(title="file_professional", align=2, sort=4)
	public String getFileProfessional() {
		return fileProfessional;
	}

	public void setFileProfessional(String fileProfessional) {
		this.fileProfessional = fileProfessional;
	}
	
	@ExcelField(title="file_installationdate", align=2, sort=5)
	public String getFileInstallationdate() {
		return fileInstallationdate;
	}

	public void setFileInstallationdate(String fileInstallationdate) {
		this.fileInstallationdate = fileInstallationdate;
	}
	
	@ExcelField(title="file_useryear", align=2, sort=6)
	public String getFileUseryear() {
		return fileUseryear;
	}

	public void setFileUseryear(String fileUseryear) {
		this.fileUseryear = fileUseryear;
	}
	
	@ExcelField(title="file_person", align=2, sort=7)
	public String getFilePerson() {
		return filePerson;
	}

	public void setFilePerson(String filePerson) {
		this.filePerson = filePerson;
	}
	
	@ExcelField(title="file_update", align=2, sort=8)
	public String getFileUpdate() {
		return fileUpdate;
	}

	public void setFileUpdate(String fileUpdate) {
		this.fileUpdate = fileUpdate;
	}
	
	@ExcelField(title="file_tag", align=2, sort=9)
	public String getFileTag() {
		return fileTag;
	}

	public void setFileTag(String fileTag) {
		this.fileTag = fileTag;
	}
	
	@ExcelField(title="设备层级", align=2, sort=10)
	public String getFileLevel() {
		return fileLevel;
	}

	public void setFileLevel(String fileLevel) {
		this.fileLevel = fileLevel;
	}
	
	@ExcelField(title="place_parentid", align=2, sort=11)
	public String getPlaceParentid() {
		return placeParentid;
	}

	public void setPlaceParentid(String placeParentid) {
		this.placeParentid = placeParentid;
	}
	
	@ExcelField(title="file_supply", align=2, sort=12)
	public String getFileSupply() {
		return fileSupply;
	}

	public void setFileSupply(String fileSupply) {
		this.fileSupply = fileSupply;
	}
	
	@ExcelField(title="file_userdate", align=2, sort=13)
	public String getFileUserdate() {
		return fileUserdate;
	}

	public void setFileUserdate(String fileUserdate) {
		this.fileUserdate = fileUserdate;
	}
	
	@ExcelField(title="file_quanming", align=2, sort=14)
	public String getFileQuanming() {
		return fileQuanming;
	}

	public void setFileQuanming(String fileQuanming) {
		this.fileQuanming = fileQuanming;
	}
	
	@ExcelField(title="file_zyq", align=2, sort=15)
	public String getFileZyq() {
		return fileZyq;
	}

	public void setFileZyq(String fileZyq) {
		this.fileZyq = fileZyq;
	}
	@ExcelField(title="matrlno", align=2, sort=16)
	public String getnmdesc() {
		return nmdesc;
	}

	public void setnmdesc(String nmdesc) {
		this.nmdesc = nmdesc;
	}

	public List<PartDevice> getChildren() {
		return children;
	}

	public void setChildren(List<PartDevice> children) {
		this.children = children;
	}

	@Override
	public boolean getIsNewRecord() {
		return isNewRecord || StringUtils.isBlank(getDeviceId());
	}
}